- re-enabled building of the ocaml-source package
authorStefano Zacchiroli <zack@debian.org>
Wed, 13 Jun 2007 15:19:00 +0000 (15:19 +0000)
committerStefano Zacchiroli <zack@debian.org>
Wed, 13 Jun 2007 15:19:00 +0000 (15:19 +0000)
- as a side effect noticed that some changes were done on debian/control insted of debian/control.in, fixed those

debian/changelog
debian/control
debian/control.in
debian/ocaml-source.dirs.in [new file with mode: 0644]
debian/ocaml-source.exclude [new file with mode: 0644]
debian/ocaml-source.install.in [new file with mode: 0644]
debian/rules

index d23f2813ac7fd32ece1ac1c3719867d4a7440923..a56ebc5a5787fd01179aff6baf84194872870025 100644 (file)
@@ -2,13 +2,20 @@ ocaml (3.10.0-1) UNRELEASED; urgency=low
 
   [ Stefano Zacchiroli ]
   * New upstream (stable) release
-  * ship ocaml-compiler-libs objects as STDLIB/ocaml-compiler-libs/{parsing/,
-    typing/, utils/} rather than as a flat dir tree
   * debian/patches/*
     - removed: ocaml-interp_manpage, build_wo_debug_info (integrated upstream)
     - updated: install_ocamlbuild
-
- -- Stefano Zacchiroli <zack@debian.org>  Wed, 13 Jun 2007 16:15:14 +0200
+  * ship ocaml-compiler-libs objects as STDLIB/ocaml-compiler-libs/{parsing/,
+    typing/, utils/} rather than as a flat dir tree
+  * re-enabled ocaml-source package (which ships
+    /usr/src/ocaml-3.10.0.tar.bz2), now with a better way to generate it:
+    everything in the build dir except debian/ will be copied in the resulting
+    tarball
+  * debian/ocaml-source.exclude
+    - new file: list of tar exclude patterns, matching file won't be shipped
+      in the ocaml source tarball
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 13 Jun 2007 17:15:06 +0200
 
 ocaml (3.10.0~beta-1) experimental; urgency=low
 
index ab62650cb65180f10d7455f36b7462d247a8871c..1a5c2d39c8f0835b8709420259004b61a52a652f 100644 (file)
@@ -112,6 +112,18 @@ Description: Native code compilers of the ocaml suite (the .opt ones)
  For big source codes, these packages can be two to three times faster, but
  for most normal sized sources, the difference won't be noticeable.
 
+Package: ocaml-source
+Architecture: all
+Provides: ocaml-source-${F:OCamlABI}
+Description: Sources for Objective Caml
+ Objective Caml is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains the sources needed to build some packages which build
+ depend on the ocaml source. Notice that if you want to rebuild ocaml, these
+ will not work, consider using the source package instead.
+
 Package: ocaml-interp
 Architecture: any
 Provides: ocaml-interp-${F:OCamlABI}
index 6d8fcf4082837eb68f91724916d59e415cb10626..69cd41cf1a999a5bf0898e4e25a6592a73b98c60 100644 (file)
@@ -94,7 +94,7 @@ Description: Runtime system for ocaml bytecode executables
  This package contains only the runtime system needed to run bytecode
  executables. The `ocaml' package contains the full development suite of
  Objective Caml.  You may wish to install the 'ocaml-base-nox' package if
- you do not require any graphical capilities for your runtime.
+ you do not require any graphical capabilities for your runtime.
 
 Package: ocaml-native-compilers
 Architecture: #OcamlNativeArchs#
diff --git a/debian/ocaml-source.dirs.in b/debian/ocaml-source.dirs.in
new file mode 100644 (file)
index 0000000..b601f22
--- /dev/null
@@ -0,0 +1 @@
+usr/src
diff --git a/debian/ocaml-source.exclude b/debian/ocaml-source.exclude
new file mode 100644 (file)
index 0000000..ca64c3e
--- /dev/null
@@ -0,0 +1,2 @@
+*/debian
+*/*-stamp
diff --git a/debian/ocaml-source.install.in b/debian/ocaml-source.install.in
new file mode 100644 (file)
index 0000000..d50e30c
--- /dev/null
@@ -0,0 +1 @@
+debian/ocaml-#OcamlABI#.tar.bz2                /usr/src/
index 2ae7a4363e61be079053312d3dab541c15c2c23d..aa75b87e76b7e35b7ee5717e5f570d644dfc919d 100755 (executable)
@@ -1,12 +1,6 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-#
-# Modified to make a template file for a multi-binary package with separated
-# build-arch and build-indep targets by Bill Allombert 2001
-
-# We want to use dpatch.
 include /usr/share/dpatch/dpatch.make
+
 PACKAGE = ocaml
 OCAMLMAJOR = 3.10
 OCAMLMINOR = 0
@@ -16,6 +10,7 @@ MD5SUMSDIR = /var/lib/ocaml/md5sums
 INSTDIR = $(CURDIR)/debian/ocaml-nox/usr
 
 NATIVE_ARCHS = $(shell cat debian/native-archs)
+DISTDIR = $(PACKAGE)-$(OCAMLMAJOR).$(OCAMLMINOR)
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -106,10 +101,14 @@ endif
        $(MAKE) -C debian/policy
        touch build-arch-stamp
 
-build-indep: build-indep-stamp
-build-indep-stamp: patch-stamp config-stamp
-       # Add here commands to compile the indep part of the package.
-       #$(MAKE) doc
+build-indep: build-indep-stamp config-stamp
+build-indep-stamp: patch-stamp
+       # create ocaml source tarball
+       ln -fs . $(DISTDIR)     # beware of the symlink recursion!
+       tar --anchored -chjf debian/$(DISTDIR).tar.bz2 \
+               --exclude=$(DISTDIR)/$(DISTDIR) \
+               --exclude-from=debian/ocaml-source.exclude \
+               $(DISTDIR)/
        touch $@
 
 clean: abi-sed unpatch
@@ -136,6 +135,7 @@ endif
 
        dh_clean debian/README.labltk camlp4/config/Makefile.cnf camlp4/config/Makefile config/m.h config/s.h config/Makefile emacs/ocamltags driver/ocamlcomp.sh
        debian/rules abi-sed-clean
+       rm -f debian/$(DISTDIR).tar.bz2
 
 install: install-indep install-arch
 install-indep: build-indep